// 对象深拷贝
export const deepClone = (obj) => {
	if (typeof obj !== 'object' || obj === null) {
		return obj;
	}
	let result = Array.isArray(obj) ? [] : {};
	for (let k in obj) {
		if (obj.hasOwnProperty(k)) {
			result[k] = deepClone(obj[k]);
		}
	}
	return result
}
